package com.sohoometer.web.erp.utils;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;

public class SessionUtils {
	public static String downloadHeatMeter = "downloadHeatMeter";
	public static void addSessionAttribute(String key, Object value){
			Map<String, Object> session = getSession();
			session.put(key, value);
	};
	public static boolean hasSessionAttribute(Object key){
		Map<String, Object> session = getSession();
		return session.containsKey(key);
	};
	public static  Map<String, Object> getSession() {
		ActionContext context = ActionContext.getContext();
		Map<String, Object> session = context.getSession();
		return session;
	}
	
	

}
